home *** CD-ROM | disk | FTP | other *** search
- #if !defined(AFX_TESTCHILDWND_H__7D09436F_CD1E_11D0_A9D7_006097AB7F86__INCLUDED_)
- #define AFX_TESTCHILDWND_H__7D09436F_CD1E_11D0_A9D7_006097AB7F86__INCLUDED_
-
- #if _MSC_VER >= 1000
- #pragma once
- #endif // _MSC_VER >= 1000
- // TestChildWnd.h : header file
- //
-
- #include "resource.h"
- #include "Tfundecl.h"
-
- /////////////////////////////////////////////////////////////////////////////
- // CTestChildWnd dialog
-
- class CTestChildWnd : public CDialog
- {
- protected:
- enum { NUM_UPD_RATES = 10, DEFAULT_UPD_RATE = 7 };
-
-
- // Construction
- public:
- CTestChildWnd(UINT aid, VIEW v, char* clut, CWnd* pParent = NULL);
- ~CTestChildWnd();
-
- void StartTest();
- void StopTest();
- void PauseTest();
- void UpdateView();
- void SetUpdateRate(int rate);
- int GetNumUpdateRates() { return NUM_UPD_RATES; }
- int GetDefaultRate() { return DEFAULT_UPD_RATE; }
-
- BOOL IsPaused() { return m_Paused; }
-
- // Dialog Data
- //{{AFX_DATA(CTestChildWnd)
- enum { IDD = IDD_TESTWINDOW };
- // NOTE: the ClassWizard will add data members here
- //}}AFX_DATA
-
-
- // Overrides
- // ClassWizard generated virtual function overrides
- //{{AFX_VIRTUAL(CTestChildWnd)
- protected:
- virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
- //}}AFX_VIRTUAL
-
- protected:
- CWnd* m_pParent;
- VIEW m_View;
- OBJECT m_Screen;
- OBJECT m_Loc;
- DRAWPORT m_Drawport;
- UINT m_areaID;
- char* m_pszClut;
- float* m_pRebindArray;
- int m_NumVdps;
- UINT m_DataCounter;
- UINT m_TimerID;
- UINT m_SpeedIndex;
- BOOL m_Running;
- BOOL m_Paused;
-
- static UINT m_Speed[NUM_UPD_RATES];
-
-
- // Implementation
- protected:
- void InstallTimer();
- BOOL SetupLoc(const MSG* msg);
- void HandleOnDraw(const MSG* msg);
- void HandleMousePointerMsg(const MSG* msg);
-
- // Generated message map functions
- //{{AFX_MSG(CTestChildWnd)
- afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
- afx_msg void OnDestroy();
- afx_msg void OnPaint();
- virtual BOOL OnInitDialog();
- afx_msg void OnMouseMove(UINT nFlags, CPoint point);
- afx_msg void OnLButtonDown(UINT nFlags, CPoint point);
- afx_msg void OnRButtonDown(UINT nFlags, CPoint point);
- afx_msg void OnLButtonUp(UINT nFlags, CPoint point);
- afx_msg void OnRButtonUp(UINT nFlags, CPoint point);
- //}}AFX_MSG
- DECLARE_MESSAGE_MAP()
- };
-
- //{{AFX_INSERT_LOCATION}}
- // Microsoft Developer Studio will insert additional declarations immediately before the previous line.
-
- #endif // !defined(AFX_TESTCHILDWND_H__7D09436F_CD1E_11D0_A9D7_006097AB7F86__INCLUDED_)
-